package com.yimils.core.hardware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("hardware_retail")
public class RetailEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer online;

    private Integer battery;

    private Long partnerId;

    private Long hotelId;

    private Long feederId;

    private String room;

    private String sn;

    private String btAddr;

    private String qrCodeUrl;

    private Integer type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
